/**
 * file:   TurkeyAdapter.java
 * date:   2014年7月10日
 * author: weiwei
 * desc:   the turkey adapter can make turkey look like duck
 */
package designPattern.Adapter;

public class TurkeyAdapter implements Duck {

	Turkey turkey;
	
	public TurkeyAdapter(Turkey turkey) {
		this.turkey = turkey;
	}
	

	public void quack() {
		turkey.gobble();

	}


	public void fly() {
		for(int i=0; i < 5; i++) {
			turkey.fly();
		}
	}

}
